ns_syslog_task

Configuration for NetScaler Syslog Configure Task resource.

Read/write properties

on_error<String>

Behaviour on encountering error while applying configuration template on a device: CONTINUE|EXIT.
Minimum length = 1
Maximum length = 16

variables<variable_values[]>

Values of Variables used in commands of the configuration template.

scheduleOptions<String>

Comma separated Options for scheduling Configuration Template.

device_family<String>

Family of Devices for which config template is defined..
Minimum length = 1
Maximum length = 64

ip_address<String>

Syslog server IP address.
Minimum length = 1
Maximum length = 64

device_groups<String[]>

Device Group Array on which for which template is applied.

devices<String[]>

Device IP Address Array on which template is applied.

execute_sequentially<Boolean>

True if configuration template is to be applied to devices sequentially.

scheduleTimes<String>

Comma separated times of the day(HH:MM) on which Configuration Template is scheduled.

tz_offset<Integer>

Time zone offset..

scheduleTimesEpoch<String>

Schedule time epoch (string representation of 11 digit numbers)..

scheduleType<String>

Schedule Type of Configuration Template that is scheduled.

port<Integer>

Syslog server port.
Maximum value =

Operations

NOTE: In request payload, Mandatory parameters are marked red and bold.

The following parameters can be used in the nitro request :

onerror   <String_value>

Use this parameter to set the onerror status for nitro request. Applicable only for bulk requests.
Default value: EXIT
Possible values = EXIT, CONTINUE

deleteaddget (all)

delete

URL:https://<MGMT-IP>/nitro/v2/config/ns_syslog_task/

HTTPS Method:DELETE

Request Headers:

X-NITRO-USER:username_value<String>

X-NITRO-PASS:password_value<String>

or

Cookie:NITRO_AUTH_TOKEN=token_value<String>

Response:

HTTPS Status Code on Success: 200 OK HTTPS Status Code on Failure: 4xx (for general HTTPS errors) or 5xx (for NetScaler-MAS-specific errors). The response payload provides details of the error

Response Payload:JSON

{ "errorcode": 0, "message": "Done", "severity": <String_value> }

add

URL:https://<MGMT-IP>/nitro/v2/config/ns_syslog_task?onerror=<String_value>

HTTPS Method:POST

Request Headers:

Content-Type:application/json

X-NITRO-USER:username_value<String>

X-NITRO-PASS:password_value<String>

or

Cookie:NITRO_AUTH_TOKEN=token_value<String>

Request Payload:JSON

{"ns_syslog_task": {
      "ip_address":<String_value>,
      "port":<Integer_value>,
      "scheduleOptions":<String_value>,
      "device_groups":<String_value[]>,
      "scheduleType":<String_value>,
      "on_error":<String_value>,
      "variables":[{
      "name":<String_value>,
      "value":<String_value>,
      "description":<String_value>,
      "parent_name":<String_value>,
      "valuex":<String_value>,
      "id":<String_value>,
      "type":<String_value>,
      "parent_id":<String_value>,
      "device_values":[{
      "valuex":<String_value>,
      "device_group":<String_value>,
      "device":<String_value>,
      "id":<String_value>,
      "value":<String_value>}]
,
      "values_enum_db":<String_value>,
      "default_value":<String_value>,
      "display_name":<String_value>}]
,
      "device_family":<String_value>,
      "devices":<String_value[]>,
      "execute_sequentially":<Boolean_value>,
      "scheduleTimes":<String_value>,
      "tz_offset":<Integer_value>,
      "scheduleTimesEpoch":<String_value>}}

Response:

HTTPS Status Code on Success: 200 OK HTTPS Status Code on Failure: 4xx (for general HTTPS errors) or 5xx (for NetScaler-MAS-specific errors). The response payload provides details of the error

Response Payload:JSON

{ "errorcode": 0, "message": "Done", "severity": <String_value>, "ns_syslog_task":[{
      "on_error":<String_value>,
      "variables":[{
      "parent_name":<String_value>,
      "display_name":<String_value>,
      "device_values_mapping":<String_value>,
      "valuex":<String_value>,
      "id":<String_value>,
      "type":<String_value>,
      "description":<String_value>,
      "value":<String_value>,
      "device_values":[{
      "parent_id":<String_value>,
      "device_group":<String_value>,
      "valuex":<String_value>,
      "value":<String_value>,
      "device":<String_value>,
      "id":<String_value>,
      "parent_name":<String_value>}],
      "parent_id":<String_value>,
      "name":<String_value>,
      "default_value":<String_value>,
      "values_enum_db":<String_value>}],
      "scheduleOptions":<String_value>,
      "device_family":<String_value>,
      "ip_address":<String_value>,
      "device_groups":<String_value>,
      "devices":<String_value>,
      "execute_sequentially":<Boolean_value>,
      "scheduleTimes":<String_value>,
      "tz_offset":<Integer_value>,
      "scheduleTimesEpoch":<String_value>,
      "scheduleType":<String_value>,
      "port":<Integer_value>}]}

get (all)

URL:https://<MGMT-IP>/nitro/v2/config/ns_syslog_task

Query-parameters:

filter

https://<MGMT-IP>/nitro/v2/config/ns_syslog_task?filter=property-name1:property-value1,property-name2:property-value2

Use this query-parameter to get the filtered set of ns_syslog_task resources configured on the system. You can set a filter on any property of the resource.

pagesize=#no&pageno=#no

https://<MGMT-IP>/nitro/v2/config/ns_syslog_task?pagesize=#no&pageno=#no

Use this query-parameter to get the ns_syslog_task resources in chunks.

count

https://<MGMT-IP>/nitro/v2/config/ns_syslog_task?count=yes

Use this query-parameter to get the count of ns_syslog_task resources.

HTTPS Method:GET

Request Headers:

Accept:application/json

X-NITRO-USER:username_value<String>

X-NITRO-PASS:password_value<String>

or

Cookie:NITRO_AUTH_TOKEN=token_value<String>

Response:

HTTPS Status Code on Success: 200 OK HTTPS Status Code on Failure: 4xx (for general HTTPS errors) or 5xx (for NetScaler-MAS-specific errors). The response payload provides details of the error

Response Headers:

Content-Type:application/json

Response Payload:JSON

{ "errorcode": 0, "message": "Done", "severity": <String_value>, "ns_syslog_task":[{
      "on_error":<String_value>,
      "variables":[{
      "parent_name":<String_value>,
      "display_name":<String_value>,
      "device_values_mapping":<String_value>,
      "valuex":<String_value>,
      "id":<String_value>,
      "type":<String_value>,
      "description":<String_value>,
      "value":<String_value>,
      "device_values":[{
      "parent_id":<String_value>,
      "device_group":<String_value>,
      "valuex":<String_value>,
      "value":<String_value>,
      "device":<String_value>,
      "id":<String_value>,
      "parent_name":<String_value>}],
      "parent_id":<String_value>,
      "name":<String_value>,
      "default_value":<String_value>,
      "values_enum_db":<String_value>}],
      "scheduleOptions":<String_value>,
      "device_family":<String_value>,
      "ip_address":<String_value>,
      "device_groups":<String_value>,
      "devices":<String_value>,
      "execute_sequentially":<Boolean_value>,
      "scheduleTimes":<String_value>,
      "tz_offset":<Integer_value>,
      "scheduleTimesEpoch":<String_value>,
      "scheduleType":<String_value>,
      "port":<Integer_value>}]}